package psn.zjk.springboot.mybatis.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import psn.zjk.springboot.domain.User;

import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;

/**
 * @USER white
 * @DATETIME 2021/2/5 20:03
 */
@Mapper
public interface UserMapper {

    @Insert("insert into user (username,password) values ( ?)")
    void insert(User user);

    void insertBatch(List<User> users);

    void selectAll();

    public static void main(String[] args) {
        Supplier<String>  supplier= () -> {return "";} ;
        Function z=o -> {
            System.out.println(1);
            return o;
        };
        System.out.println(z.apply(3));;
    }
}
